const Controller = require("../../controller");
const router = require("koa-router")();

router.prefix("/api/doctor_info");

const ctrl = Controller.controllers.doctor_info;

router.get("/info", ctrl.get_doctor);
router.get("/infos", ctrl.get_doctors);
router.post("/add_doctors", ctrl.add_doctors);
router.post("/update_pb", ctrl.update_pb);
router.post("/add_doctor_valid", ctrl.add_doctor_valid);
router.post("/update_info", ctrl.update_info);
router.post("/add_faild_reason", ctrl.add_valid_faild);
router.get("/faild_reason", ctrl.get_faild_reason);

module.exports = router;
